package com.thwcompany.mpdemo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thwcompany.mpdemo.domain.User;
import com.thwcompany.mpdemo.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author Administrator
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2024-02-24 15:47:47
* @Entity com.thwcompany.mpdemo.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 无搜索条件分页查询
     */
    //Page<User> getList(Page<User> page);
    ///**
    // * 有搜索条件分页查询
    // */
    //Page<User> getList1(Page<User> page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);
    ///**
    // * 有搜索条件分页查询
    // */
    //Page<User> getList2(Page<User> page,@Param("id")Long id);

    /**
     * 测试mp的多表关联查询
     */
    Page<UserVo> getUserByIdAndCity(Page<User> page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);


    }




